package com.sky.mapper;


import com.sky.anno.AutoFill;
import com.sky.dto.SetmealDTO;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.Setmeal;
import com.sky.enumeration.OperationType;
import com.sky.vo.SetmealVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealMapper {
    List<SetmealVO> pageQuery(SetmealPageQueryDTO setmealPageQueryDTO);

    @AutoFill(OperationType.INSERT)
    void insert(Setmeal setmeal);

    SetmealVO getById(Long id);
    @AutoFill(OperationType.UPDATE)
    void updateSetmealDish(Setmeal setmeal);

    @AutoFill(OperationType.UPDATE)
    void updateStatus(Setmeal setmeal);


    void deleteByIds(List<Long> ids);

}
